package com.example.myspringbootpj.service;

import com.example.myspringbootpj.entity.Word;
import com.example.myspringbootpj.mapper.WordMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudyService {

    @Autowired
    private WordMapper wordMapper;

    public void addWordsToNewStudy(String userId) {
        wordMapper.insertNewStudyBatch(userId);
    }
    public void addWordNum(String userId, Integer worldId) {
        wordMapper.insertStudyNum(userId,worldId);

        wordMapper.moveToReviewStudy(userId,worldId);
    }

}
